package cn.edu.ssm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.ssm.dao.HomeMapper;
import cn.edu.ssm.entity.Media;
import cn.edu.ssm.entity.Type;
import cn.edu.ssm.service.HomeService;

@Service
public class HomeServiceImpl implements HomeService {
	
	@Autowired
	private HomeMapper homeMapper;

	@Override
	public List<Media> getNewMedias(String string) {
		return homeMapper.getNewMedias(string);
	}

	@Override
	public List<Media> getMediaList(String pHOTO_TYPE) {
		return homeMapper.getMediaList(pHOTO_TYPE);
	}

	@Override
	public List<Media> getPhotoView(String pHOTO_TYPE, String medianum) {
		return homeMapper.getPhotoView(pHOTO_TYPE, medianum);
	}

	@Override
	public List<Type> getTypeList() {
		return homeMapper.getTypeList();
	}

	@Override
	public List<Map<String, Object>> getStatistic() {
		return homeMapper.getStatistic();
	}


}
